<?php
/**
 * Created by PhpStorm.
 * User: M2
 * Date: 13-11-19
 * Time: 上午10:24
 */
class YlSuccessTemplateTaglib {
    public function __construct() {
        C(include SITE_PATH.'/extends/taglib/tagarr.php');
    }
    public function parse($content, $arr = array(), $type) {
        $matches = preg_parse($content, 'yl:successTemplate');
        foreach ($matches as $match) {
            $text = getParseContentText($match, 'yl:successTemplate');
            $content = str_replace($match, $text, $content);
        }
        return $content;
    }
}